local ma__jiezhi = fk.CreateSkill{
  name = "ma__jiezhi"
}

Fk:loadTranslationTable{
  ["ma__jiezhi"] = "竭志",
  [":ma__jiezhi"] = "出牌阶段，你可以失去1点体力并令一名角色视为使用一张【决斗】，其本回合不能再使用牌。",

  ["#ma__jiezhi"] = "竭志：你可以令一名角色视为使用【决斗】",
  ["#ma__jiezhi-duel"] = "竭志：请视为使用【决斗】",

  ["$ma__jiezhi1"] = "",
  ["$ma__jiezhi2"] = "",
}

ma__jiezhi:addEffect("active", {
  anim_type = "offensive",
  prompt = "#ma__jiezhi",
  card_filter = Util.FalseFunc,
  target_filter = function(self, player, to_select, selected)
    return #selected == 0 and to_select:canUse(Fk:cloneCard("duel"))
  end,
  target_num = 1,
  on_use = function(self, room, effect)
    local player = effect.from
    local target = effect.tos[1]
    player.room:loseHp(player, 1, ma__jiezhi.name)
      if not target.dead then
        room:askToUseVirtualCard(target, {
          name = "duel",
          skill_name = ma__jiezhi.name,
          prompt = "#ma__jiezhi-duel",
          cancelable = false,
        })
      end
    player.room:setPlayerMark(target, "ma__jiezhi-turn", 1)
  end,
})



ma__jiezhi:addEffect("prohibit", {
  prohibit_use = function(self, player, card)
    return card and player:getMark("ma__jiezhi-turn") > 0
  end,
})

return ma__jiezhi